package com.gem.day08.factory;

/**咖啡顶级抽象父类*/
public abstract class Coffee {
	public abstract String getName();
}

/**美式咖啡子类*/
class Americano extends Coffee {
	@Override
	public String getName() {
		return "美式咖啡";
	}
}

/**卡布奇诺子类*/
class Cappuccino extends Coffee {
	@Override
	public String getName() {
		return "卡布奇诺";
	}
}

/**拿铁子类*/
class Latte extends Coffee {
	@Override
	public String getName() {
		return "拿铁";
	}
}